package com.ywl.designpattern.strategy;

/**
 * 2.然后,实现具体的策略类
 * @author yuwl
 * @description PayPal支付策略
 * @since 2024-06-27 16:00
 */
public class PayPalStrategy implements PaymentStrategy {

    private String emailId;

    public PayPalStrategy(String emailId) {
        this.emailId = emailId;
    }

    @Override
    public void pay(int amount) {
        System.out.println(amount + " paid using PayPal");
    }
}
